如何禁用Tomcat的缓存?

您所在的位置:网站首页 tomcat 禁用缓存 如何禁用Tomcat的缓存?

如何禁用Tomcat的缓存?

2023-08-31 03:45| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

how to disable tomcat caching? I use this -

in Tomcat/conf/context.xml

but it not helps

推荐答案

Actual problem is antiResourceLocking="true".

Looks like there is a conflict with cachingAllowed="false".

其他推荐答案

I'm not sure what you're using, but in context.xml you can change the value of cachingAllowed by removing the flag.

Remember to delete the cache folder after that.

Resources :

Apache Tomcat Configuration Reference

On the same topic :

How do I disable tomcat caching? I'm having weird static file problems. 其他推荐答案

cachingAllowed did not help. I resolved this by modifying :

$CATALINA_HOME/conf/Catalina/localhost/thewebapp.xml

which is the cached file of context.xml



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3